//
//  ExchangeDetailHeaderView.m
//  ZDB
//
//  Created by 微笑吧阳光 on 2020/3/19.
//  Copyright © 2020 ZDB. All rights reserved.
//

#import "ExchangeDetailHeaderView.h"

@implementation ExchangeDetailHeaderView

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/


-(void)awakeFromNib{
    
    [super awakeFromNib];
    KViewRadius(self.bgView, 5);
    
    
}

-(void)setModell:(ZDBExchangeModel *)modell{

    _modell = modell;
    
    [self.coverImage sd_setImageWithURL:[NSURL URLWithString:modell.goodsUrl] placeholderImage:[UIImage imageNamed:@"shangpinnoon"]];
     self.titleLab.text = modell.goodsName;
     self.numLab.text = [NSString stringWithFormat:@"已兑换%@件 库存%@",kStringForNumber(modell.exchangeNumber),kStringForNumber(modell.goodsNumber)];
     self.jifenNum.text = [NSString stringWithFormat:@"%@",kStringForNumber(modell.integral)];
     self.jiazhiLab.text = [NSString stringWithFormat:@"价值¥%@",kStringForNumber(modell.money)];

    
}
@end
